use std::mem;

fn main() {
}

#[test]
fn test_size_of() {
    let array: [u8; 10] = [1; 10];
    let s = &array[..];
    assert_eq!(10, mem::size_of_val(&array));
    assert_eq!(10, mem::size_of_val(s));
    assert_eq!(16, mem::size_of_val(&s));
}